package cn.jy.boot.config;

import cn.jy.boot.bean.MylocaleResolver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MyWebConfig implements WebMvcConfigurer {

    @Bean
    public LocaleResolver localeResolver(){
        System.out.println("国际化配置生效了");
        return new MylocaleResolver();
    }
}
